]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extension: log message if extension could not be installed
authorGautier Pelloux-Prayer <gautier+git@damsy.net>
Fri, 6 Jan 2017 12:08:29 +0000 (13:08 +0100)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 21 Nov 2017 18:15:05 +0000 (13:15 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=776940

js/ui/extensionDownloader.js

index 03441e6b0738e97c5e4f4e75338c37ededd0315a..fd2ecfe306b734de11b74ca7d1c0060226464b06 100644 (file)
@@ -233,7 +233,9 @@ var InstallExtensionDialog = new Lang.Class({
         let dir = Gio.File.new_for_path(GLib.build_filenamev([global.userdatadir, 'extensions', uuid]));
         let invocation = this._invocation;
         function errback(code, message) {
-            invocation.return_dbus_error('org.gnome.Shell.' + code, message ? message.toString() : '');
+            let msg = message ? message.toString() : '';
+            log('Error while installing %s: %s (%s)'.format(uuid, code, msg));
+            invocation.return_dbus_error('org.gnome.Shell.' + code, msg);
         }
 
         function callback() {